import request from '@/utils/axios'
import baseUrl from '@/api/baseUrl'
export function login(data) {
  return request({
    baseURL:baseUrl.supervision.urlApi,
    method: 'post',
    url: '/uac/user/login',
    data
  })
}


export function logout(data) {
  return request({
    baseURL:baseUrl.supervision.urlApi,
    url: '/uac/user/logout',
    method: 'post',
    data
  })
}

export function refreshToken(params) {
  return request({
    baseURL:baseUrl.supervision.urlApi,
    url: '/uac/user/refresh-token',
    method: 'get',
    params
  })
}

export function getUserInfo(params) {
  return request({
    baseURL:baseUrl.supervision.urlApi,
    url: '/uac/user/info',
    method: 'get',
    params
  })
}

